﻿using AIVision.Repository.Entitys;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AIVision.Repository
{
    public class AiVisionDbContext: DbContext
    {

        public DbSet<PLCConfig> PLCConfigs { get; set; }
        public DbSet<CheckTemplate> CheckTemplates { get; set; }
        public DbSet<CheckStation> CheckStations { get; set; }
        public DbSet<DefectItem> DefectItems { get; set; }
        public DbSet<Camera> Cameras { get; set; }
        public DbSet<InpsectionRecord> InpsectionRecords { get; set; }
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlite("Data Source=d:\\aivision.db");
        }
    }
}
